﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ResetTool.aspx.cs" Inherits="LootPoints.Pages.ResetTool" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    
    <style type="text/css">
        #resetTool {
            margin-top: 20px;
            margin-left: auto;
            margin-right: auto;
            width: 500px;
            text-align: center;
        }
        .pnlPop {
            width: 200px;
            height: 100px;
            border: 1px solid Black;
            background-color: white;
            text-align: center;
        }
        .modalBackground {
            background-color:#B8B8BF;
            filter:alpha(opacity=40);
            opacity:0.5;
        }
    </style>

    <div id="resetTool">
        
        <p>
            <a href="Login.aspx">Back</a>
        </p>

        <p>
            Charactername:
            <asp:Label ID="lblUsername" runat="server" CssClass="errorp" Text="" />
            <asp:RequiredFieldValidator runat="server" ID="reqUsername" CssClass="errorp" ControlToValidate="tbUsername" ErrorMessage="Character is required!" ValidationGroup="loginControls">*</asp:RequiredFieldValidator><br />
            <asp:TextBox ID="tbUsername" runat="server" Width="196px" CssClass="loginControl" ValidationGroup="loginControls" /><br />
            Password:
            <asp:RequiredFieldValidator runat="server" ID="reqPassword" CssClass="errorp" ControlToValidate="tbPassword" ErrorMessage="Password is required!" ValidationGroup="loginControls">*</asp:RequiredFieldValidator><br />
            <asp:TextBox ID="tbPassword" runat="server" Width="196px" CssClass="loginControl" TextMode="Password" ValidationGroup="loginControls" /><br />
            Repeat password:
            <asp:RequiredFieldValidator runat="server" ID="reqRpassword" CssClass="errorp" ControlToValidate="tbRpassword" ErrorMessage="Repeat password!" ValidationGroup="loginControls">*</asp:RequiredFieldValidator>
            <asp:CompareValidator runat="server" ID="compRpassword" CssClass="errorp" ControlToValidate="tbRpassword" ControlToCompare="tbPassword" ErrorMessage="Passwords do not match!" ValidationGroup="loginControls">*</asp:CompareValidator><br />
            <asp:TextBox ID="tbRpassword" runat="server" Width="196px" CssClass="loginControl" TextMode="Password" ValidationGroup="loginControls" />
        </p>
        <div>
            <asp:Button ID="btnReset" runat="server" Text="reset password" CssClass="loginControl" OnClick="btnReset_Click" ValidationGroup="loginControls" />
        </div>
        <div>
            <br />
            <asp:ValidationSummary ID="valsumLogin" runat="server" CssClass="errorp" ValidationGroup="loginControls" />
            <asp:Label ID="lblStatus" runat="server" CssClass="errorp" />
        </div>

        <asp:ModalPopupExtender ID="mpeAdd" runat="server" TargetControlID="lbtnInvisible" PopupControlID="pnlPop" BackgroundCssClass="modalBackground"></asp:ModalPopupExtender>
        <asp:Panel ID="pnlPop" runat="server" CssClass="pnlPop">
            <p>
                SUCCES!
            </p>
            <p>
                <asp:Button ID="btnOK" runat="server" Text="OK" OnClick="btnOK_Click" />
            </p>
        </asp:Panel>

    </div>
    <asp:LinkButton ID="lbtnInvisible" runat="server" Text="" />

</asp:Content>
